import { defineConfig } from 'vite'
import { resolve } from 'path'
import uni from '@dcloudio/vite-plugin-uni'
import alias from '@rollup/plugin-alias'

export default defineConfig({
  resolve: {
    alias: {
      '@': resolve(__dirname, './src'),
      '@C': resolve(__dirname, './src/components'),
      '@U': resolve(__dirname, './src/utils'),
      '@P': resolve(__dirname, './src/pages'),
      '@P_GL': resolve(__dirname, './src/page_gl'),
    },
  },
  plugins: [
    alias(),
    uni(),
  ],
})
